class CreateDocuments < ActiveRecord::Migration
  def self.up
    create_table :documents do |t|
      t.column :title, :string
      t.column :description, :string
      t.column :body, :text
      t.column :user_id, :integer
      t.column :created_at, :datetime, :default=>Time.now
      t.column :document_state_id, :integer, :default=>1
    end
  end

  def self.down
    drop_table :documents
  end
end
